using Microsoft.AspNetCore.Mvc;
using zhwy.saas.api.Entity.Sys;
using zhwy.saas.api.Models;
using zhwy.saas.api.Models.Sys.Tenants;

namespace zhwy.saas.api.Services.Sinterface.Sys
{
    /// <summary>
    /// 系统租户服务接口
    /// </summary>
    public interface ISysTenantService : IBaseService<TenantsEntity>
    {
        /// <summary>
        /// 检查租户统一社会信用代码是否存在
        /// </summary>
        /// <param name="usci">统一社会信用代码</param>
        /// <returns>是否存在</returns>
        Task<bool> CheckusciExists(string usci);
        /// <summary>
        /// 分页获取实体列表
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PagedList<TenantsEntity>> GetPageList(GetPageListReq request);
        /// <summary>
        /// 编辑租户信息
        /// </summary>
        /// <param name="req"></param>
        /// <param name="userid"></param>
        /// <returns></returns>
        Task<bool> UpdateTenantInfo(UpdateTenantInfoReq req, long userid);
    }
}